﻿Imports Entidad
Imports Datos

Public Class DocumentoAlmacenDetalleNegocio

    Dim dao As New DocumentoAlmacenDetalleDatos

    Sub registrarDocumentoAlmacenDetalle(dad As DocumentoAlmacenDetalle)
        dao.registrarDocumentoAlmacenDetalle(dad)
    End Sub

    Function generarCodigoDAD(tipodoc As String) As Integer
        Return dao.generarCodigoDAD(tipodoc)
    End Function

    Sub desactivarRegistrosDAD(cia As String, suc As String, tdoc As String, dcaCodigo As String, dadCodigo As String)
        dao.desactivarRegistrosDAD(cia, suc, tdoc, dcaCodigo, dadCodigo)
    End Sub

    Function obtenerArtículosEnsamblado(codArticulo As String) As DataSet
        Return dao.obtenerArtículosEnsamblado(codArticulo)
    End Function

    Function obtenerUbicaciones(codArticulo As String) As DataSet
        Return dao.obtenerUbicaciones(codArticulo)
    End Function

    Function obtenerDatosImpresionLargos(codPedido As String, tipDocumento As String) As DataSet
        Return dao.obtenerDatosImpresionLargos(codPedido, tipDocumento)
    End Function

    Function obtenerItemsPedido(codPedido As String) As DataSet
        Return dao.obtenerItemsPedido(codPedido)
    End Function

End Class
